home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / lynx-2.4 / WWW / Library / Implementation / HTVMSUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-28  |  2.3 KB  |  116 lines

  1. /*             VMS specific routines
  2.                                              
  3.  */
  4.  
  5. #ifndef HTVMSUTIL_H
  6. #define HTVMSUTIL_H
  7.  
  8.  
  9. extern BOOL HTVMSFileVersions;    /* Include version numbers in listing? */
  10.  
  11. /* PUBLIC                            HTVMS_authSysPrv()
  12. **        CHECKS IF THIS PROCESS IS AUTHORIZED TO ENABLE SYSPRV
  13. ** ON ENTRY:
  14. **    No arguments.
  15. **
  16. ** ON EXIT:
  17. **    returns    YES if SYSPRV is authorized
  18. */
  19. PUBLIC BOOL HTVMS_authSysPrv NOPARAMS;
  20.  
  21.  
  22. /* PUBLIC                            HTVMS_enableSysPrv()
  23. **        ENABLES SYSPRV
  24. ** ON ENTRY:
  25. **    No arguments.
  26. **
  27. ** ON EXIT:
  28. **    
  29. */
  30. PUBLIC void HTVMS_enableSysPrv NOPARAMS;
  31.  
  32.  
  33. /* PUBLIC                            HTVMS_disableSysPrv()
  34. **        DISABLES SYSPRV
  35. ** ON ENTRY:
  36. **    No arguments.
  37. **
  38. ** ON EXIT:
  39. **    
  40. */
  41. PUBLIC void HTVMS_disableSysPrv NOPARAMS;
  42.  
  43. /* PUBLIC                            HTVMS_checkAccess()
  44. **        CHECKS ACCESS TO FILE FOR CERTAIN USER
  45. ** ON ENTRY:
  46. **    FileName    The file to be accessed
  47. **    UserName    Name of the user to check access for
  48. **
  49. ** ON EXIT:
  50. **    returns YES if access is allowed
  51. **    
  52. */
  53. PUBLIC BOOL HTVMS_checkAccess PARAMS((
  54.     CONST char * FileName,
  55.     CONST char * UserName,
  56.     CONST char * Method));
  57.  
  58.  
  59. /* PUBLIC                            HTVMS_wwwName()
  60. **        CONVERTS VMS Name into WWW Name 
  61. ** ON ENTRY:
  62. **    vmsname        VMS file specification (NO NODE)
  63. **
  64. ** ON EXIT:
  65. **    returns     www file specification
  66. **
  67. ** EXAMPLES:
  68. **    vmsname                wwwname
  69. **    DISK$USER             disk$user
  70. **    DISK$USER:             /disk$user/
  71. **    DISK$USER:[DUNS]         /disk$user/duns
  72. **    DISK$USER:[DUNS.ECHO]         /disk$user/duns/echo
  73. **    [DUNS]                 duns
  74. **    [DUNS.ECHO]             duns/echo
  75. **    [DUNS.ECHO.-.TRANS]         duns/echo/../trans
  76. **    [DUNS.ECHO.--.TRANS]         duns/echo/../../trans
  77. **    [.DUNS]             duns
  78. **    [.DUNS.ECHO]             duns/echo
  79. **    [.DUNS.ECHO]TEST.COM         duns/echo/test.com 
  80. **    TEST.COM             test.com
  81. **
  82. **    
  83. */
  84. PUBLIC char * HTVMS_wwwName PARAMS((
  85.     char * vmsname));
  86.  
  87. /* PUBLIC                            HTVMS_name()
  88. **        CONVERTS WWW name into a VMS name
  89. ** ON ENTRY:
  90. **    nn        Node Name (optional)
  91. **    fn        WWW file name
  92. **
  93. ** ON EXIT:
  94. **    returns     vms file specification
  95. **
  96. ** Bug:    Returns pointer to static -- non-reentrant
  97. */
  98. PUBLIC char * HTVMS_name PARAMS((
  99.     CONST char * nn, 
  100.     CONST char * fn));
  101.  
  102. PUBLIC int HTStat PARAMS((
  103.     CONST char * filename,
  104.         stat_t * info));
  105.  
  106. PUBLIC int HTVMSBrowseDir PARAMS((
  107.     CONST char * address,
  108.     HTParentAnchor * anchor,
  109.     HTFormat format_out,
  110.     HTStream * sink));
  111.  
  112. #endif /* not HTVMSUTIL_H */
  113. /*
  114.  
  115.    End of file HTVMSUtil.h.  */
  116.